+ readonly PARAM1_DIR=testbranding/
+ PARAM1_DIR=testbranding/
+ readonly PARAM2_DMG=MacClient.9_6.10.161.33940.dmg
+ PARAM2_DMG=MacClient.9_6.10.161.33940.dmg
+ readonly PARAM3_KG=
+ PARAM3_KG=
+ readonly PLISTBUDDY=/usr/libexec/PlistBuddy
+ PLISTBUDDY=/usr/libexec/PlistBuddy
+ readonly 'SIGN_APP_STR=Developer ID Application: Gladinet, Inc. (CX8U2YJ96P)'
+ SIGN_APP_STR='Developer ID Application: Gladinet, Inc. (CX8U2YJ96P)'
+ readonly 'SIGN_PKG_STR=Developer ID Installer: Gladinet, Inc.'
+ SIGN_PKG_STR='Developer ID Installer: Gladinet, Inc.'
++ pwd
+ readonly 'CURRENT_DIR=/Users/jerry/p4/depot/branding/mac transform'
+ CURRENT_DIR='/Users/jerry/p4/depot/branding/mac transform'
+ readonly 'BUILD_DIR=/Users/jerry/p4/depot/branding/mac transform/build'
+ BUILD_DIR='/Users/jerry/p4/depot/branding/mac transform/build'
+ readonly 'INSTALLER_DIR=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir'
+ INSTALLER_DIR='/Users/jerry/p4/depot/branding/mac transform/build/installer_dir'
+ readonly 'PAYLOAD_DIR=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir'
+ PAYLOAD_DIR='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir'
+ declare m_stderr=/dev/stderr
+ declare m_stdout=/dev/stdout
+ cd testbranding/
++ pwd
+ readonly 'PARAM1_DIR_ABSOLUTE=/Users/jerry/p4/depot/branding/mac transform/testbranding'
+ PARAM1_DIR_ABSOLUTE='/Users/jerry/p4/depot/branding/mac transform/testbranding'
+ cd '/Users/jerry/p4/depot/branding/mac transform'
+ declare 'm_srcroot=/Users/jerry/p4/depot/branding/mac transform/testbranding'
+ '[' -d '/Users/jerry/p4/depot/branding/mac transform/build' ']'
+ rm -rf '/Users/jerry/p4/depot/branding/mac transform/build'
+ '[' '!' -d testbranding/ ']'
+ readonly 'branding_info_file=/Users/jerry/p4/depot/branding/mac transform/testbranding/common.sh'
+ branding_info_file='/Users/jerry/p4/depot/branding/mac transform/testbranding/common.sh'
+ '[' '!' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/common.sh' ']'
+ source '/Users/jerry/p4/depot/branding/mac transform/testbranding/common.sh'
++ CLIENT_TITLE='Privatier Cloud Mac Client'
++ export CLIENT_TITLE
++ CLIENT_DESCRIPTION='Privatier Cloud Mac Client allows you to connect to Privatier Cloud with a File System interface directly from Mac Finder and integrated with your Mac Desktop Experience.'
++ export CLIENT_DESCRIPTION
++ ACCESS_POINT=gcloud.gladinet.com
++ export ACCESS_POINT
++ FULL_ACCESS_POINT=https://gcloud.gladinet.com
++ export FULL_ACCESS_POINT
+ '[' '!' -f MacClient.9_6.10.161.33940.dmg ']'
+ hdiutil attach -private -nobrowse MacClient.9_6.10.161.33940.dmg
expected   CRC32 $7944D9CC
/dev/disk1          	                               	/Volumes/Cloud Drive Installer
+ m_exit_on_error 'cannot attach Installer disk image.'
+ '[' 0 '!=' 0 ']'
+ declare 'md_volume_name=Cloud Drive Installer'
+ declare 'md_volume_path=/Volumes/Cloud Drive Installer'
+ declare PARAM2_PKG_SEARCH=
+ cd '/Volumes/Cloud Drive Installer'
+ for pkgfile in '*.pkg'
+ PARAM2_PKG_SEARCH='Install Cloud Drive Mac Client.pkg'
+ break
+ cd '/Users/jerry/p4/depot/branding/mac transform'
+ readonly PARAM2_PKG=input.pkg
+ PARAM2_PKG=input.pkg
+ cp -f '/Volumes/Cloud Drive Installer/Install Cloud Drive Mac Client.pkg' input.pkg
+ hdiutil detach '/Volumes/Cloud Drive Installer'
"disk1" unmounted.
"disk1" ejected.
+ mkdir -p '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir'
+ installer_expand input.pkg '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir'
+ local installerPkg=input.pkg
+ local 'targetDir=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir'
+ pwd
/Users/jerry/p4/depot/branding/mac transform
+ pkgutil --expand input.pkg '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir'
+ m_exit_on_error 'Couldn'\''t expand package'
+ '[' 0 '!=' 0 ']'
+ readonly 'bra_background_png=/Users/jerry/p4/depot/branding/mac transform/testbranding/background.png'
+ bra_background_png='/Users/jerry/p4/depot/branding/mac transform/testbranding/background.png'
+ readonly 'pkg_bacnground_png=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/background.png'
+ pkg_bacnground_png='/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/background.png'
+ '[' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/background.png' ']'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/background.png'
+ cp -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/background.png' '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/background.png'
+ readonly 'bra_license_rtf=/Users/jerry/p4/depot/branding/mac transform/testbranding/License.rtf'
+ bra_license_rtf='/Users/jerry/p4/depot/branding/mac transform/testbranding/License.rtf'
+ readonly 'pkg_license_rtf=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/License.rtf'
+ pkg_license_rtf='/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/License.rtf'
+ '[' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/License.rtf' ']'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/License.rtf'
+ cp -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/License.rtf' '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/License.rtf'
+ readonly 'bra_welcome_rtf=/Users/jerry/p4/depot/branding/mac transform/testbranding/Welcome.rtf'
+ bra_welcome_rtf='/Users/jerry/p4/depot/branding/mac transform/testbranding/Welcome.rtf'
+ readonly 'pkg_welcome_rtf=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Welcome.rtf'
+ pkg_welcome_rtf='/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Welcome.rtf'
+ '[' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/Welcome.rtf' ']'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Welcome.rtf'
+ cp -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/Welcome.rtf' '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Welcome.rtf'
+ readonly 'pkg_local_str=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings'
+ pkg_local_str='/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings'
+ readonly 'pkg_temp_str=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings_temp'
+ pkg_temp_str='/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings_temp'
+ cat '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings'
" O S X F U S E C O R E _ T I T L E "   =   " O S X F U S E   C o r e " ; 
 
 " O S X F U S E C O R E _ D E S C R I P T I O N "   =   " I n s t a l l s   t h e   c o r e   c o m p o n e n t s   o f   O S X F U S E   i n c l u d i n g   t h e   o s x f u s e f s   k e r n e l   e x t e n s i o n ,   t h e   s h a r e d   u s e r   s p a c e   l i b r a r y   l i b o s x f u s e   a n d   t h e   f r a m e w o r k   O S X F U S E . f r a m e w o r k . " ; 
 
 " O S X F U S E P R E F P A N E _ T I T L E "   =   " O S X F U S E   P r e f e r e n c e   P a n e " ; 
 
 " O S X F U S E P R E F P A N E _ D E S C R I P T I O N "   =   " I n s t a l l s   t h e   O S X F U S E   P r e f e r e n c e   P a n e   w h i c h   i s   u s e d   t o   d o w n l o a d   a n d   i n s t a l l   u p d a t e s   o r   r e m o v e   O S X F U S E   c o m p l e t e l y . " ; 
 
 " O S X F U S E M A C F U S E _ T I T L E "   =   " M a c F U S E   C o m p a t i b i l i t y   L a y e r " ; 
 
 " O S X F U S E M A C F U S E _ D E S C R I P T I O N "   =   " I n s t a l l s   a   c o m p a t i b i l i t y   l a y e r   f o r   M a c F U S E   f i l e   s y s t e m s   t h a t   h a v e   n o t   b e e n   p o r t e d   t o   O S X F U S E ,   y e t .   T h i s   w i l l   r e m o v e   M a c F U S E ,   i f   i t   i s   i n s t a l l e d . " ; 
 
 " E R R O R _ O S X V E R S I O N "   =   " T h i s   r e l e a s e   o f   O S X F U S E   i s   n o t   c o m p a t i b l e   w i t h   t h e   v e r s i o n   o f   O S   X   y o u   a r e   r u n n i n g . " ; 
 
 " G L A D I N E T C L I E N T _ T I T L E "   =   " C l o u d   M a c   C l i e n t " ; 
 
 " G L A D I N E T C L I E N T _ D E S C R I P T I O N "   =   " C l o u d   M a c   C l i e n t   a l l o w s   y o u   t o   c o n n e c t   t o   C l o u d   w i t h   a   F i l e   S y s t e m   i n t e r f a c e   d i r e c t l y   f r o m   M a c   F i n d e r   a n d   i n t e g r a t e d   w i t h   y o u r   M a c   D e s k t o p   E x p e r i e n c e . " ; + chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings'
+ mv '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings' '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings_temp'
+ iconv -f UTF-16LE -t UTF-8 '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings_temp'
+ rm '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings_temp'
+ perl -pi -e 's/"GLADINETCLIENT_TITLE".*$/"GLADINETCLIENT_TITLE" = "Privatier Cloud Mac Client";/' '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings'
+ perl -pi -e 's/"GLADINETCLIENT_DESCRIPTION".*$/"GLADINETCLIENT_DESCRIPTION" = "Privatier Cloud Mac Client allows you to connect to Privatier Cloud with a File System interface directly from Mac Finder and integrated with your Mac Desktop Experience.";/' '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings'
+ mv '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings' '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings_temp'
+ iconv -f UTF-8 -t UTF-16LE '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings_temp'
+ rm '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Resources/English.lproj/Localizable.strings_temp'
+ readonly 'pkg_dist_file=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Distribution'
+ pkg_dist_file='/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Distribution'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Distribution'
+ perl -pi -e 's/<title>[^<]*<\/title>/<title>Privatier Cloud Mac Client<\/title>/g' '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/Distribution'
+ readonly 'pkg_gladinet_payload=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/Payload'
+ pkg_gladinet_payload='/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/Payload'
+ cd '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir'
+ cat '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/Payload'
+ gzip -d
+ cpio -id
3670 blocks
+ readonly 'old_app_name=Cloud Drive.app'
+ old_app_name='Cloud Drive.app'
+ readonly 'new_app_name=Privatier Cloud Mac Client.app'
+ new_app_name='Privatier Cloud Mac Client.app'
+ for file in '*.app'
+ '[' 'Cloud Drive.app' '!=' 'Privatier Cloud Mac Client.app' ']'
+ mv 'Cloud Drive.app' 'Privatier Cloud Mac Client.app'
+ break
+ readonly 'PLIST_FILE=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Info.plist'
+ PLIST_FILE='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Info.plist'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Info.plist'
+ /usr/libexec/PlistBuddy -c 'Set :CFBundleName '\''Privatier Cloud Mac Client'\''' '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Info.plist'
+ /usr/libexec/PlistBuddy -c 'Set :CSAccessPoint '\''https://gcloud.gladinet.com'\''' '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Info.plist'
Set: Entry, ":CSAccessPoint", Does Not Exist
+ readonly 'appicon_16x16_png_tar=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/3color-all.png'
+ appicon_16x16_png_tar='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/3color-all.png'
+ readonly 'appicon_16x16_png_src=/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon16.png'
+ appicon_16x16_png_src='/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon16.png'
+ '[' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon16.png' ']'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/3color-all.png'
+ cp -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon16.png' '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/3color-all.png'
+ readonly 'appicon_188_png_tar=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/appicon188.png'
+ appicon_188_png_tar='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/appicon188.png'
+ readonly 'appicon_188_png_src=/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon188.png'
+ appicon_188_png_src='/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon188.png'
+ '[' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon188.png' ']'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/appicon188.png'
+ cp -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon188.png' '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/appicon188.png'
+ readonly 'appicon_512_icns_tar=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/appicon.icns'
+ appicon_512_icns_tar='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/appicon.icns'
+ readonly 'appicon_512_icns_src=/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon512.icns'
+ appicon_512_icns_src='/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon512.icns'
+ '[' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon512.icns' ']'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/appicon.icns'
+ cp -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon512.icns' '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/appicon.icns'
+ readonly 'upload1_ico_tar=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload1.ico'
+ upload1_ico_tar='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload1.ico'
+ readonly 'upload1_ico_src=/Users/jerry/p4/depot/branding/mac transform/testbranding/upload1.ico'
+ upload1_ico_src='/Users/jerry/p4/depot/branding/mac transform/testbranding/upload1.ico'
+ '[' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/upload1.ico' ']'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload1.ico'
+ cp -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/upload1.ico' '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload1.ico'
+ readonly 'upload2_ico_tar=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload2.ico'
+ upload2_ico_tar='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload2.ico'
+ readonly 'upload2_ico_src=/Users/jerry/p4/depot/branding/mac transform/testbranding/upload2.ico'
+ upload2_ico_src='/Users/jerry/p4/depot/branding/mac transform/testbranding/upload2.ico'
+ '[' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/upload2.ico' ']'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload2.ico'
+ cp -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/upload2.ico' '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload2.ico'
+ readonly 'upload3_ico_tar=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload3.ico'
+ upload3_ico_tar='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload3.ico'
+ readonly 'upload3_ico_src=/Users/jerry/p4/depot/branding/mac transform/testbranding/upload3.ico'
+ upload3_ico_src='/Users/jerry/p4/depot/branding/mac transform/testbranding/upload3.ico'
+ '[' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/upload3.ico' ']'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload3.ico'
+ cp -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/upload3.ico' '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload3.ico'
+ readonly 'upload4_ico_tar=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload4.ico'
+ upload4_ico_tar='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload4.ico'
+ readonly 'upload4_ico_src=/Users/jerry/p4/depot/branding/mac transform/testbranding/upload4.ico'
+ upload4_ico_src='/Users/jerry/p4/depot/branding/mac transform/testbranding/upload4.ico'
+ '[' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/upload4.ico' ']'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload4.ico'
+ cp -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/upload4.ico' '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/upload4.ico'
+ readonly 'notconn_ico_tar=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/notconn.ico'
+ notconn_ico_tar='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/notconn.ico'
+ readonly 'notconn_ico_src=/Users/jerry/p4/depot/branding/mac transform/testbranding/notconn.ico'
+ notconn_ico_src='/Users/jerry/p4/depot/branding/mac transform/testbranding/notconn.ico'
+ '[' -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/notconn.ico' ']'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/notconn.ico'
+ cp -f '/Users/jerry/p4/depot/branding/mac transform/testbranding/notconn.ico' '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/notconn.ico'
+ readonly 'infoString_en=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/en.lproj/InfoPlist.strings'
+ infoString_en='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/en.lproj/InfoPlist.strings'
+ echo -n ''
+ readonly 'infoString_ja=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/ja.lproj/InfoPlist.strings'
+ infoString_ja='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/ja.lproj/InfoPlist.strings'
+ echo -n ''
+ readonly 'infoString_zh=/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/zh-Hans.lproj/InfoPlist.strings'
+ infoString_zh='/Users/jerry/p4/depot/branding/mac transform/build/payload_dir/Privatier Cloud Mac Client.app/Contents/Resources/zh-Hans.lproj/InfoPlist.strings'
+ echo -n ''
+ codesign -f -s 'Developer ID Application: Gladinet, Inc. (CX8U2YJ96P)' 'Privatier Cloud Mac Client.app/'
Privatier Cloud Mac Client.app/: replacing existing signature
+ rm '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/Payload'
+ cd '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir'
+ find .
+ cpio -o --format odc
+ gzip -c
3317 blocks
+ readonly 'pkg_gladinet_bom=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/Bom'
+ pkg_gladinet_bom='/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/Bom'
+ rm '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/Bom'
+ mkbom '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir' '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/Bom'
++ du -sk '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir'
++ cut -f 1,1
+ readonly BLOCK_SIZE=1872
+ BLOCK_SIZE=1872
++ find '/Users/jerry/p4/depot/branding/mac transform/build/payload_dir'
++ wc -l
++ sed 's/ //g'
+ readonly NUMBER_FILE=109
+ NUMBER_FILE=109
+ readonly 'pkg_gladinet_pkginfo=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/PackageInfo'
+ pkg_gladinet_pkginfo='/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/PackageInfo'
+ chmod +w '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/PackageInfo'
+ perl -pi -e 's/<payload>.*\/>/<payload installKBytes="1872" numberOfFiles="109"\/>/' '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/PackageInfo'
+ perl -pi -e 's/Cloud Drive.app/Privatier Cloud Mac Client.app/g' '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir/GladinetClient.pkg/PackageInfo'
+ cd '/Users/jerry/p4/depot/branding/mac transform'
+ '[' -f output.pkg ']'
+ rm -f output.pkg
+ declare signedpkg=output_sign.pkg
+ installer_collapse '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir' output.pkg
+ local 'targetDir=/Users/jerry/p4/depot/branding/mac transform/build/installer_dir'
+ local targetPkg=output.pkg
+ pkgutil --flatten '/Users/jerry/p4/depot/branding/mac transform/build/installer_dir' output.pkg
+ productsign --sign 'Developer ID Installer: Gladinet, Inc.' output.pkg output_sign.pkg
productsign: using timestamp authority for signature
productsign: signing product with identity "Developer ID Installer: Gladinet, Inc." from keychain /Users/jerry/Library/Keychains/login.keychain
productsign: adding certificate "Developer ID Certification Authority"
productsign: adding certificate "Apple Root CA"
productsign: Wrote signed product archive to output_sign.pkg
+ echo output_sign.pkg
output_sign.pkg
+ recreate_dmg
+ local 'md_volume_name=Privatier Cloud Mac Client'
+ local md_scratch_dmg=installer-scratch.dmg
+ '[' -f installer-scratch.dmg ']'
+ hdiutil create -layout NONE -size 10m -fs HFS+ -fsargs '-c c=64,a=16,e=16' -volname 'Privatier Cloud Mac Client' installer-scratch.dmg
created: /Users/jerry/p4/depot/branding/mac transform/installer-scratch.dmg
+ m_exit_on_error 'cannot create scratch installer disk image.'
+ '[' 0 '!=' 0 ']'
+ hdiutil attach -private -nobrowse installer-scratch.dmg
/dev/disk1          	                               	/Volumes/Privatier Cloud Mac Client
+ m_exit_on_error 'cannot attach scratch installer disk image.'
+ '[' 0 '!=' 0 ']'
+ local 'md_volume_path=/Volumes/Privatier Cloud Mac Client'
+ /bin/chmod 755 '/Volumes/Privatier Cloud Mac Client/.Trashes'
+ /bin/rm -rf '/Volumes/Privatier Cloud Mac Client/.Trashes'
+ m_exit_on_error 'cannot remove .Trashes directory from scratch disk image'
+ '[' 0 '!=' 0 ']'
+ local 'md_pkgname_installer=Install Privatier Cloud Mac Client.pkg'
+ cp -pRX output_sign.pkg '/Volumes/Privatier Cloud Mac Client/Install Privatier Cloud Mac Client.pkg'
+ '[' 0 -ne 0 ']'
+ xcrun SetFile -a E '/Volumes/Privatier Cloud Mac Client/Install Privatier Cloud Mac Client.pkg'
+ '[' 0 -ne 0 ']'
+ local 'md_engine_install=/Volumes/Privatier Cloud Mac Client/.engine_install'
+ cat
+ chmod +x '/Volumes/Privatier Cloud Mac Client/.engine_install'
+ m_exit_on_error 'cannot set permissions on autoinstaller engine file.'
+ '[' 0 '!=' 0 ']'
+ cp -pRX '/Users/jerry/p4/depot/branding/mac transform/testbranding/appicon512.icns' '/Volumes/Privatier Cloud Mac Client/.VolumeIcon.icns'
+ '[' 0 -ne 0 ']'
+ xcrun SetFile -a C '/Volumes/Privatier Cloud Mac Client'
+ '[' 0 -ne 0 ']'
+ mkdir '/Volumes/Privatier Cloud Mac Client/.background'
+ '[' 0 -ne 0 ']'
+ cp '/Users/jerry/p4/depot/branding/mac transform/testbranding/background_installer.png' '/Volumes/Privatier Cloud Mac Client/.background/'
+ '[' 0 -ne 0 ']'
+ open -a Finder '/Volumes/Privatier Cloud Mac Client'
+ sleep 5
+ osascript
+ echo '
        tell application "Finder"
            tell disk "Privatier' Cloud Mac 'Client"
                open
                set current view of container window to icon view
                delay 3
                set toolbar visible of container window to false
                delay 3
                set the bounds of container window to {0, 0, 500, 350}
                delay 3
                set theViewOptions to the icon view options of container window
                delay 3
                set arrangement of theViewOptions to not arranged
                delay 3
                set icon size of theViewOptions to 128
                delay 3
                set background picture of theViewOptions to file ".background:background_installer.png"
                delay 3
           
                set position of item "Install' Privatier Cloud Mac 'Client.pkg" of container window to {250, 218}
                delay 3
              
                close
                delay 3
                open
                delay 3
                  set the bounds of container window to {0, 0, 500, 350}
                  delay 3
                close
            end tell
        end tell
    '

+ '[' 0 -ne 0 ']'
+ chmod -Rf go-w '/Volumes/Privatier Cloud Mac Client'
+ sync
+ sync
+ hdiutil detach '/Volumes/Privatier Cloud Mac Client'
"disk1" unmounted.
"disk1" ejected.
+ '[' 0 -ne 0 ']'
+ local md_dmg_name=Output-MacClient.9_6.10.161.33940.dmg
+ local md_dmg_path=Output-MacClient.9_6.10.161.33940.dmg
+ hdiutil convert -imagekey zlib-level=9 -format UDZO installer-scratch.dmg -o Output-MacClient.9_6.10.161.33940.dmg
Preparing imaging engine…
Reading whole disk (Apple_HFS : 0)…
   (CRC32 $CACA9743: whole disk (Apple_HFS : 0))
Adding resources…
Elapsed Time:  99.516ms
File size: 3315042 bytes, Checksum: CRC32 $7559CE1F
Sectors processed: 20480, 8609 compressed
Speed: 42.2Mbytes/sec
Savings: 68.4%
created: /Users/jerry/p4/depot/branding/mac transform/Output-MacClient.9_6.10.161.33940.dmg
+ m_exit_on_error 'cannot finalize OSXFUSE distribution disk image.'
+ '[' 0 '!=' 0 ']'
+ rm -f installer-scratch.dmg
+ echo done, check output file Output-MacClient.9_6.10.161.33940.dmg
done, check output file Output-MacClient.9_6.10.161.33940.dmg
